<!DOCTYPE html>
<!--    5、将数组元素逆序排列 -->
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<script type="text/javascript">
		var arrayA = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 ];
		document.write(arrayA + "<br />");
		arrayA.reverse();
		document.write(arrayA);
	</script>

</body>
</html>